package com.voilet.interview.databing;


import java.text.SimpleDateFormat;
import java.util.Date;

import androidx.databinding.BindingConversion;

/**
 * Created by kan212 on 2019/4/13.
 */

public class StaticTest {

    public static String getStatic(SwordsMan swordsMan){
        return swordsMan.name;
    }

    @BindingConversion
    public static String convertData(Date date){
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
        return dateFormat.format(date);
    }
}
